package com.huqing.icu.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.huqing.icu.enums.ChatRoleEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @Description 对话消息表实体类
 * @Author huqing
 * @Date 2025/7/26 17:05
 **/
@Data
@TableName("chat_message")
public class ChatMessage {
    @Schema(description = "主键id")
    private Long id;

    @Schema(description = "父消息的ID")
    private Long parentId;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "对话ID")
    private Long chatSessionId;

    @Schema(description = "对话内容")
    private String content;

    @Schema(description = "使用多少token")
    private Integer token;

    /**
     * @see ChatRoleEnum
     */
    @Schema(description = "角色")
    private String role;

    @Schema(description = "是否删除 0-否 1-是")
    private Integer isDeleted;

    @Schema(description = "创建时间")
    private Timestamp createTime;

    @Schema(description = "更新时间")
    private Timestamp modifyTime;
}